yuan = (1,2,3,4,5,6,7,8,9)
a=0
while(a <= len(yuan)):
    if(a<=7):
        print(yuan[a])
    else:
        raise Exception(f"元组中的元素长度超过7则引发报错{a}!")
    a=a+1;